package com.logistic.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.logistic.dao.IntegralDao;
import com.logistic.domain.Integral;
import com.logistic.service.IntegralService;


@Service
public class IntegralServiceImpl implements IntegralService {

	@Autowired
	private IntegralDao integralDao;
	
	public void save(Integral in){
		integralDao.save(in);
	}

	public void modify(Integral in)
	{
		integralDao.modify(in);
	}
	
	public Integral getIntegralByUid(Integral in){
		return integralDao.getIntegralByUid(in);
	}
	
	public void deleteByIdStr(String idStr){
		String[] ids = idStr.split("'"); 
		for(int i = 0; i < ids.length; i++) {
			integralDao.delete(ids[i]);
		}
	}
	
	public IntegralDao getIntegralDao() {
		return integralDao;
	}

	public void setIntegralDao(IntegralDao integralDao) {
		this.integralDao = integralDao;
	}

	
	
}
